using System.IdentityModel.Tokens.Jwt;

namespace CHEnhanceEfCore.Common
{
    public static class JwtHelper
    {
        /// <summary>
        /// 反解析token
        /// </summary>
        /// <param name="accessToken"></param>
        /// <returns></returns>
        public static JwtSecurityToken reverseParseToken(string accessToken)
        {
            JwtSecurityTokenHandler tokenHandler = new JwtSecurityTokenHandler();
            JwtSecurityToken jwtToken = tokenHandler.ReadJwtToken(accessToken);
            return jwtToken;
        }
    }
}